home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Prograph Classic 2.6.1 / Examples / Scrolling PICT Files / Scroll Pict.ReadMe < prev   
Encoding:
Text File  |  1995-09-29  |  1.6 KB  |  30 lines  |  [TEXT/ttxt]

  1. Example:                        Scroll Pict
  2. Written by:                    Garth Smedley, Pictorius Incorporated
  3. Previously written by:   Lynn McKaig and Ehric Ho, TGS Systems
  4. Updated for 2.6.1 by:            The Tech Support Team, Pictorius Incorporated
  5.  
  6. Note: Using pictures and PICT resources can take up a lot of memory - to use this example with certain PICT resources it will probably be necessary to increase the memory partition of the Classic Interpreter.  Also keep this in mind when you compile your application.
  7.  
  8. Contents:     Scroll Pict.pgs
  9.                    Scroll Pict.ReadMe
  10.  
  11. Needs Prograph Extensions:
  12.                     The default configuration of your 'Prograph Extensions' folder.
  13.  
  14. Needs Libraries to Compile:  
  15.                     SCLibrary 2.6
  16.                     Library 2.6
  17.  
  18. New Classes:
  19.                   Pict File - Subclass of Canvas that draws a picture from a PICT file.
  20.                   Pict rsrc - Subclass of Canvas that draws a picture from a PICT resource.
  21.  
  22. New Methods:
  23.                                     Read PICT File - A universal method that reads a picture from a PICT file
  24.  
  25.  
  26. Description
  27. -----------
  28. This example demonstrates how to read a picture from a PICT file. Our technical support department is asked how to do this surprisingly often. The universal method "Open File" opens a file, reads a picture from it, and displays the picture in a window. 
  29.  
  30. It also demonstrates how to draw a picture with scroll bars. The class "Scroll Pict" does most of the work, the classes "PICT File" and "PICT rsrc" are refinements of "Scroll Pict" which display pictures from files and resources respectively.